package com.liao.dao;

import com.liao.bean.Money;

import java.util.List;

public interface MoneyDao {

    /**
     * 根据账号模糊查询会员列表
     * @param userId
     * @return
     * @throws Exception
     */
    List<Money> selectMoneyListLikeMoneyName(String userId) throws Exception;

    /**
     * 添加会员
     * @param money
     * @throws Exception
     */
    void addMoney(Money money) throws Exception;

    /**
     * 修改会员
     * @param money
     * @throws Exception
     */
    void updateMoney(Money money) throws Exception;

    /**
     * 根据id删除会员
     * @param umId
     * @throws Exception
     */
    void deleteMoney(String umId) throws Exception;
}
